﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Sustainalytics.Entities;

namespace Sustainalytics.CompanyScreening.Model
{

    public class FilterDetails
    {
        public Guid FilterId { get; set; }
        
        public Guid OwnerUserId { get; set; }
        
        public string Name { get; set; }

        public FilterType Type { get; set; }

        public int Version { get; set; }

        public Guid RootFilterId { get; set; }

        public DateTime? LastSaved { get; set; }

    }

    public class CurrentFilterDetails
    {
        public FilterDetails Filter { get; set; }

        public int RootVersion { get; set; }

        public Guid UserId {get;set;}
    }


    public class RootFilterDetails
    {
        public FilterDetails Filter { get; set; }

        public DateTime CreatedAt { get; set; }
      
    }

    public class UserFilterDetails
    {
        public Guid UserId { get; set; }
      
        public DateTime? LastUsed { get; set; }

        public FilterDetails Details;
    }
}
